inspector: Add an icon to the render node list
authorBenjamin Otte <otte@redhat.com>
Wed, 5 Sep 2018 04:34:03 +0000 (06:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Sep 2018 16:50:17 +0000 (18:50 +0200)
gtk/inspector/recorder.c

index c136758af0dc36e726d4ab2004aea90573d3b428..8c27ccc8d8ba2d9da383d143c01d2c3b7e1152f4 100644 (file)
@@ -345,6 +345,11 @@ create_widget_for_render_node (gpointer row_item,
     }
   gtk_container_add (GTK_CONTAINER (box), child);
 
+  /* icon */
+  child = gtk_image_new_from_paintable (paintable);
+  gtk_container_add (GTK_CONTAINER (box), child);
+
+  /* name */
   name = node_name (node);
   child = gtk_label_new (name);
   g_free (name);